/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package patterns;

/**
 *
 * @author Victor
 */
public class ObserverTest {
    public static void main(String[] args) {
   Observer o = new ObserverImpl();
   Subject s = new SubjectImpl();
   s.addObserver(o);
   s.setState("Otro estado");

 }
}
